package com.filepd.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户
 * @TableName user
 */
@TableName(value ="user")
@Data
@AllArgsConstructor
@NoArgsConstructor

public class User implements Serializable {

    /**
     * id
     */

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户昵称
     */
    @TableField(value = "user_Name")
    private String userName;

    /**
     * 账号
     */
    @TableField(value = "user_Account")
    private String userAccount;

    /**
     * 用户头像
     */
    @TableField(value = "user_Avatar")
    private String userAvatar;

    /**
     * 性别
     */
    @TableField(value = "gender")
    private Integer gender;

    /**
     * 用户角色：user / admin
     */
    @TableField(value = "user_Role")
    private String userRole;

    /**
     * 密码
     */
    @TableField(value = "user_Password")
    private String userPassword;

    /**
     * 用户省份
     */
    @TableField(value = "user_Address")
    private String userAddress;

    /**
     *  用户标签
     */
    @TableField(value = "user_Tags")
    private String userTags;

    /**
     * 创建时间
     */
    @TableField(value = "create_Time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_Time")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(value = "is_Delete")
    private Integer isDelete;

}